package com.ms;

import java.io.IOException;

/**
 *
 * catch 的顺序 应该依次变大，最小的异常放在最前面；
 * @author carter
 * create time    2018-08-20
 */
public class TestException2 {

    public void doSomething() throws IOException
    {
        System.out.println("do something");
    }

    public static void main(String[] args) {

        TestException2 testException2 = new TestException2();
        try {
            testException2.doSomething();
        }
        catch (IOException e) {
            e.printStackTrace();
        }
        catch (Exception ex)
        {

        }


    }

}
